// 以插件的形式注册为全局可用组件
// 骨架组件
import Skeleton from './Skeleton'
// 轮播图
import Slider from './Slider'
// 查看更多
import More from './More'
import Bread from './Bread'
import BreadItem from './Bread/Item.vue'
import InfiniteLoad from './InfiniteLoad'
import City from './City'
import CheckNumber from './Number'
import Button from './Button'
import CheckBox from './CheckBox'
import Message from './Message/message.vue'
import Dialog from './Dialog'

// 定义插件
const plugin = {
  install (app) {
    app.component('Skeleton', Skeleton)
    app.component(Slider.name, Slider)
    app.component(More.name, More)
    app.component(Bread.name, Bread)
    app.component(BreadItem.name, BreadItem)
    app.component(InfiniteLoad.name, InfiniteLoad)
    app.component(City.name, City)
    app.component(CheckNumber.name, CheckNumber)
    app.component(Button.name, Button)
    app.component(CheckBox.name, CheckBox)
    app.component(Message.name, Message)
    app.component(Dialog.name, Dialog)
  }
}
// 默认导出
export default plugin
